import time
import pyautogui
'''
国考网课模拟刷课软件
'''
pyautogui.PAUSE=1#模拟点击延时1S
while True:
    x,y=pyautogui.position()#获取鼠标的坐标
    pyautogui.click(x,y)#点击鼠标右键
    time.sleep(5)
    try:
        pyautogui.scroll(-50)#鼠标向下滚动50像素点
    except pyautogui.FailSafeException:
        print("滚动失败了")
        pyautogui.scroll(-50)
    time.sleep(1)
        

